// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import jWeixin from 'weixin-js-sdk'
import './assets/font/iconfont.css'
import 'mint-ui/lib/style.css'
import { MessageBox, Toast, Indicator, Popup} from 'mint-ui'
import jQuery from 'jquery'
import Ajax from './tools/http.js'
import vueFilter from './tools/filter.js'
import store from './store';

// vux引入start-------------
import {
    Tab,
    TabItem,
    XTextarea,
    Datetime,
    PopupPicker,
    XAddress,
    ChinaAddressV3Data,
    XNumber,
    Confirm,
    Scroller,
    Qrcode,
    XSwitch,
    Actionsheet
} from 'vux';
Vue.component(Tab.name, Tab);
Vue.component(TabItem.name, TabItem);
Vue.component(XTextarea.name, XTextarea);
Vue.component(Datetime.name, Datetime);
Vue.component(PopupPicker.name, PopupPicker);
Vue.component(XAddress.name, XAddress);
Vue.component(XNumber.name, XNumber);
Vue.component(Confirm.name, Confirm);
Vue.component(Scroller.name, Scroller);
Vue.component(Qrcode.name, Qrcode);
Vue.component(XSwitch.name, XSwitch);
Vue.component(Actionsheet.name, Actionsheet);
Vue.use(Datetime);
// Vue.use(ConfirmPlugin);
Vue.prototype.ChinaAddressV3Data = ChinaAddressV3Data;
//vux引入end-------------
Vue.component(Popup.name, Popup); 
Vue.prototype.MessageBox = MessageBox;
Vue.prototype.Indicator = Indicator;
Vue.prototype.Toast = Toast;
Vue.prototype.Ajax = Ajax;
Vue.prototype.jWeixin = jWeixin;

// Vue.prototype.InfiniteScroll = InfiniteScroll;
vueFilter(Vue);
Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    template: '<App/>',
    components: { App }
})
